package com.zheng.loanplatform.core.controller.admin;


import com.zheng.loanplatform.core.pojo.entities.IntegralGrade;
import com.zheng.loanplatform.core.service.IntegralGradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 积分等级管理
 *
 * @author zheng
 * @since 2021-04-01
 */
@CrossOrigin
@RestController
@RequestMapping("/admin/integralGrade")
public class IntegralGradeAdminController {
    @Autowired
    private IntegralGradeService integralGradeService;

    @GetMapping("/list")
    public List<IntegralGrade> listAll() {
        return integralGradeService.list();
    }

}

